import { request } from './request';

export function getHomeAllData() {
  return request({
    url: '/viewBlock/page/blocks?platform=h5&page_name=h5-page-index',
  });
}

export function getSearchData(page = 1, keywords, size = 10) {
  return request({
    url: `/search?page=${page}&size=${size}&keywords=${keywords}`,
  });
}
